package  core.managers
{
	/**
	 * 关闭按钮id管理器 
	 * @author Ado
	 * 
	 */	
	public class CloseButtunIdManager
	{
		/** 关闭按钮在id存储 */
		private static var closeButtonIds:Object = {
			bagPanel : 20001,
			peoplePanel : 20002,
			petPanel : 20003,
			taskPanel : 20004
		};
		/**
		 * 根据面板名取得关闭按钮的cmdId 
		 * @param str
		 * @return 
		 * 
		 */		
		public static function getCloseButtonIdByName(str:String):int
		{
			if(closeButtonIds.hasOwnProperty(str))
			{
				return closeButtonIds[str];
			}else
			{
				return 0;
			}
		}
	}
}